package com.bj58.mis.apm.collector;

import com.bj58.mis.apm.client.core.BaseCollectLog;

public abstract class BaseSchedulableCollector<Entity extends BaseCollectLog> extends BaseCollector<Entity> implements SchedulableCollector<Entity> {

    protected volatile boolean running = false;
    public void scheduleHandle() {
        if(running) return;

        running = true;
        try{
            schedule();
        } finally {
            running = false;
        }


    }
}
